<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>LarryBlogCMS-Home</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" type="text/css" href="/bsc/static/common/layui/css/layui.css" media="all">
		<link rel="stylesheet" type="text/css" href="/bsc/static/common/bootstrap/css/bootstrap.css" media="all">
		<link rel="stylesheet" type="text/css" href="/bsc/static/common/global.css">
		<link rel="stylesheet" type="text/css" href="/bsc/static/css/main.css" media="all">
	</head>
	<body>
		<section class="larry-wrapper">
			<!-- 修改个人信息 -->
			<div class="row">
				<div class="col-lg-6">
					<section class="panel">
						<header class="panel-heading bm0">
							<span class='span-title'>修改个人信息</span>
							<span class="tools pull-right"><a href="javascript:;" class="iconpx-chevron-down"></a></span>
						</header>
						<div class="panel-body">
						<form action="" id="for" methood="post">
							<table class="table table-hover personal-task">
								<tbody>
								<tr>
										<td>
										<input hidden type="text" name="user_id" value="${user.user_id }" />
											<div class="layui-form-item" style="height: 10px;">
												<label class="layui-form-label" style="width: 100px;">账号</label>
												<div class="layui-input-block">
													<input type="text" value="${user.account }" name="account" disabled="disabled"  class="layui-input layui-disabled" type="text" >
												</div>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="layui-form-item" style="height: 10px;">
												<label class="layui-form-label" style="width: 100px;">姓名</label>
												<div class="layui-input-block">
													<input type="text" value="${user.username }" name="username"  class="layui-input newsName" type="text" lay-verify="required" >
												</div>
											</div>
										</td>
									</tr>
									<tr>
									    <td>
									        <div class="layui-form-item" style="height: 10px;">
												<label class="layui-form-label" style="width: 100px;">性别</label>
												<div class="layui-input-block" style="position: relative;left: -900px; top:10px;">
												    <input type="radio" name="sex" id="sex1" <c:if test="${user.sex=='1' }">checked='checked'</c:if> value="1" />男&nbsp;&nbsp;&nbsp;
												    <input type="radio" name="sex" id="sex2" <c:if test="${user.sex=='2' }">checked='checked'</c:if> value="2" />女
												</div>
											</div>
									    </td>
									</tr>
									<tr>
										<td>
											<div class="layui-form-item" style="height: 10px;">
												<label class="layui-form-label" style="width: 100px;">手机号</label>
												<div class="layui-input-block">
													<input type="text" value="${user.mobile }" name="mobile"  class="layui-input newsName" type="text" lay-verify="photo" >
												</div>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="layui-form-item" style="height: 10px;">
												<label class="layui-form-label" style="width: 100px;">qq</label>
												<div class="layui-input-block">
													<input type="text" value="${user.qq }" name="qq"  class="layui-input newsName" type="text" lay-verify="required">
												</div>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="layui-form-item" style="height: 10px;">
												<label class="layui-form-label" style="width: 100px;">微信</label>
												<div class="layui-input-block">
													<input type="text" value="${user.wechat }" name="wechat"  class="layui-input newsName" type="text" lay-verify="required" >
												</div>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="layui-form-item" style="height: 10px;">
												<label class="layui-form-label" style="width: 100px;">邮箱</label>
												<div class="layui-input-block">
													<input type="text" value="${user.email }" name="email"  class="layui-input newsName" type="text" lay-verify="email" >
												</div>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="layui-form-item" style="height: 10px;">
												<label class="layui-form-label" style="width: 100px;">身份证号</label>
												<div class="layui-input-block">
													<input type="text" value="${user.idno }" name="idno"  class="layui-input newsName" type="text" lay-verify="identity" >
												</div>
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="layui-form-item" style="height: 10px;">
												<label class="layui-form-label" style="width: 100px;">联系地址</label>
												<div class="layui-input-block">
													<input type="text" value="${user.address }" name="address"  class="layui-input newsName" type="text" lay-verify="required" >
												</div>
											</div>
										</td>
									</tr>
									<tr>
										<td align="center">
											<button class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
										</td>
									</tr>
								</tbody>
							</table>
						   </form>
						</div>
					</section>
				</div>
			</div>
		</section>
		<script type="text/javascript" src="/bsc/static/common/layui/layui.js"></script>
		<script type="text/javascript" src="/bsc/static/jsplug/echarts.min.js"></script>
		<script type="text/javascript" src="/bsc/static/js/main.js"></script>
		<script type="text/javascript">
		layui.use(['form','layer','jquery','layedit','laydate'],function(){
			var form = layui.form(),
				layer = parent.layer === undefined ? layui.layer : parent.layer,
				laypage = layui.laypage,
				layedit = layui.layedit,
				laydate = layui.laydate,
				$ = layui.jquery;

		 	form.on("submit(demo1)",function(data){
		 		var index = top.layer.msg('数据修改中，请稍候',{icon: 16,time:false,shade:0.8});
		            	 setTimeout(function(){
		            		 $.ajax({
		            	            type: "post",
		            	            url: "/bsc/systemuser/upuser",
		            	            data:$("#for").serialize(),
		            	            success: function(data){
					                    top.layer.close(index);
					         			top.layer.msg("修改成功！");
					          			layer.closeAll("iframe");
					         	 		//刷新父页面
					         	 		parent.location.reload();
		            	            }
		            	    });  
		                 },2000);
		          		return false;
		    	});
		});
		</script>
	</body>
</html>